package com.example.domain;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * 功能描述: TODO <br/>
 * 创建时间: 2016/9/27<br/>
 *
 * @author QiuYang
 */
@XmlRootElement(name = "device")
public class Device {
    private String ip;
    private int status;

    public Device(){}

    public Device(String ip) {
        super();
        this.ip = ip;
    }

    @XmlAttribute
    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    @XmlAttribute
    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
